#!/bin/sh

cd /etc/uci-defaults || exit 0
source /etc/os-release

files="$(ls /etc/uci-defaults/)"
[ -n "$files" ] && {
	mkdir -p /usr/share/omr-update
	if [ "$(grep rom /etc/mtab)" = "" ]; then
		rm /usr/share/omr-update/*
		cp /etc/uci-defaults/* /usr/share/omr-update
	fi
}
exit 0
